﻿using Best.SmartCms.Dto.Response;

namespace Best.SmartCms.Service.BizException
{
    /// <summary>
    /// 已登录
    /// </summary>
    public class LoginedException : BizExceptionBase
    {
        /// <summary>
        /// 
        /// </summary>
        public override ResponseCode ExceptionCode => ResponseCode.LoginedError;
        /// <summary>
        /// 
        /// </summary>
        public LoginedException() : base() { }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public LoginedException(string msg) : base(msg)
        {

        }
    }

    /// <summary>
    /// 强制退出
    /// </summary>
    public class ForceLogoutException : BizExceptionBase
    {
        /// <summary>
        /// 
        /// </summary>
        public override ResponseCode ExceptionCode => ResponseCode.ForceLogout;
        /// <summary>
        /// 
        /// </summary>
        public ForceLogoutException() : base() { }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="msg"></param>
        public ForceLogoutException(string msg) : base(msg)
        {

        }
    }
}
